package com.ruoyi.system.Controller;

import com.ruoyi.system.domain.Vo.R;
import com.ruoyi.system.service.impl.WxAuthenticationServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WxLoginController {
    @Autowired
    private WxAuthenticationServiceImpl wxAuthenticationServiceImpl;

    @GetMapping(value = "/WxLogin")
    public R getwxlogin(String code){
        return wxAuthenticationServiceImpl.code2Session(code);
    }

}
